home *** CD-ROM | disk | FTP | other *** search
- /* bt_macro.h - macros, constants, data types for BTREE internals */
-
- #define CURR 1 /* getting current block */
- #define NOT_CURR 0 /* getting non-current block */
-
- /* call a function using a ptr */
- #define CALL(pfun) (* (pfun) )
- #define call(pfun) (* (pfun) )
-
- /* get adderss of entry in a block */
- #define ENT_ADR(pb,off) ((ENTRY *) ((char *)((pb)->entries)+off))
-
- /* get size of an entry */
- #define ENT_SIZE(pe) (*(pci->psize)) (pe)
-
- /* current position macros */
- #define CB(l) ( pci->pos[l].cblock )
- #define CO(l) ( pci->pos[l].coffset )
-
- #define FREE_LEVEL (-1) /* marks a block as free */
-
- /* arguments for neighbor() */
- #define LEFTN (-1) /* request left neighbor() */
- #define RIGHTN 1 /* request right neighbor */
-
-